package org.video.mine;

import android.app.Application;

import org.video.mine.mycode.SSLSocketFactoryUtils;

import javax.net.ssl.HttpsURLConnection;

public class VideoApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        trustAllSSL();
    }

    private void trustAllSSL(){
        HttpsURLConnection.setDefaultSSLSocketFactory(SSLSocketFactoryUtils.createSSLSocketFactory());
        HttpsURLConnection.setDefaultHostnameVerifier(new SSLSocketFactoryUtils.TrustAllHostnameVerifier());
    }

}
